﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity;

namespace IDAL
{
    /// <summary>
    /// UserRemark 数据层接口
    /// </summary>
    public interface IUserRemarkDAL
    {
        /// <summary>
        /// 插入一条用户备注
        /// </summary>
        /// <param name="model">用户备注实体</param>
        /// <returns>操作是否成功</returns>
        bool Insert(UserRemark model);

        /// <summary>
        /// 删除一条用户备注
        /// </summary>
        /// <param name="id">用户备注的记录ID</param>
        /// <returns>操作是否成功</returns>
        bool Delete(int id);

        /// <summary>
        /// 更新用户备注
        /// </summary>
        /// <param name="model">用户备注实体</param>
        /// <returns>操作是否成功</returns>
        bool Update(UserRemark model);

        /// <summary>
        /// 获取一条用户备注信息
        /// </summary>
        /// <param name="id">用户备注的记录ID</param>
        /// <returns>用户备注实体</returns>
        UserRemark GetById(int id);

        /// <summary>
        /// 获取用户备注分页列表
        /// </summary>
        /// <param name="pageIndex">索引页</param>
        /// <param name="pageSize">每页显示条数</param>
        /// <param name="total">总记录数</param>
        /// <returns>用户备注实体类集合</returns>
        IList<UserRemark> GetPagingList(int pageIndex, int pageSize, out int total);
    }
}
